﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="GS.Cricket.Entities"
                   namespace="GS.Cricket.Entities">
  <class name="Match" table="TourMatch">
    <id name="Id" type="int">
      <generator class="native" />
    </id>
    <property name="SequenceNumber" />
    <property name="TeamA" column="Team_A_Id" />
    <property name="TeamB" column="Team_B_Id" />
    <property name="Winner" column="WinnerTeam_Id" />
    <property name="TeamARunsScored" column="Team_A_RunsScored" />
    <property name="TeamAOversPlayed" column="Team_A_OversPlayed" />
    <property name="TeamAOversBowled" column="Team_A_OversBowled" />
    <property name="TeamANoOfWickets" column="Team_A_NoOfWickets" />
    <property name="TeamBRunsScored" column="Team_B_RunsScored" />
    <property name="TeamBOversPlayed" column="Team_B_OversPlayed" />
    <property name="TeamBOversBowled" column="Team_B_OversBowled" />
    <property name="TeamBNoOfWickets" column="Team_B_NoOfWickets" />
    <property name="TossWonBy" column="TossWonByTeamId" />
    <property name="FirstInningsPlayedBy" column="FirstInningsTeamId" />
    <property name="Date" column="MatchDate" />
    <property name="IsCancelled" />
    <property name="SuperOver" column="SuperOverId" />
    <property name="ManOfTheMatch" column="MOM_PlayerId" />
    <property name="UmpireA" column="Umpire_A_Id" />
    <property name="UmpireB" column="Umpire_B_Id" />
    <property name="ThirdUmpire" column="ThirdUmpireId" />
  </class>
</hibernate-mapping>